package com.yan.utils;

import java.io.IOException;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.methods.GetMethod;

public class HttpClientTest2 {

	public static void main(String[] args) throws HttpException, IOException {
		String url = "http://192.168.70.213:8080/chatServer/chat/sendPChatMessage/android/football?lang=zh&timeZone=8&message=&chatType=football&toUserId=null&sourceName=android&msgCode=1&msgId=e10ea908-dae9-4824-9ebf-5262f04d577b&thirdId=3482618&deviceId=357095063448756&userId=hhly90320&phoneNum=13570185327&userLogo=http://tp.13322.com/img/2017-06-06/9212f265-8f28-40e3-9032-a2cb412e633c.jpg&userNick=诸葛看盘";
		//String url="http://localhost:10088/JFinal/indexJson";
		GetMethod method = new GetMethod(url);

		HttpClient http = new HttpClient();
		int result = http.executeMethod(method);
		
		System.out.println(result);
		
	}
}
